onEvent('recipes', event => {
    let enchant_list = [
        {
            inputs: ['3x thermal_extra:nebulium_plate', '2x kubejs:item_24', '3x botania:light_relay', 'psi:cad_core_radiative'],
            output: '2x kubejs:item_27',
            fluid: Fluid.of('manaliquidizer:mana_fluid', 500),
            energy: 20000
        },
        {
            inputs: ['6x thermal_extra:dragon_bronze_plate', '2x minecraft:end_crystal', '2x kubejs:item_22', 'botania:gaia_ingot'],
            output: '2x kubejs:item_25',
            fluid: Fluid.of('manaliquidizer:mana_fluid', 500),
            energy: 20000
        },
        {
            inputs: ['4x thermal_extra:vukaium_plate', '2x bloodmagic:itemroutingnode', '2x kubejs:item_23', '2x psi:ebony_psimetal'],
            output: '2x kubejs:item_26',
            fluid: Fluid.of('manaliquidizer:mana_fluid', 500),
            energy: 20000
        },
        {
            inputs: ['4x kubejs:paper_2', 'kubejs:item_22', 'kubejs:item_24', 'forbidden_arcanus:dark_nether_star'],
            output: '2x kubejs:item_21',
            fluid: Fluid.of('manaliquidizer:mana_fluid', 1000),
            energy: 20000
        },
        {
            inputs: ['6x ironfurnaces:rainbow_plating', '4x kubejs:item_26', '3x ars_nouveau:marvelous_clay', 'kubejs:item_21'],
            output: 'kubejs:item_28',
            fluid: Fluid.of('manaliquidizer:mana_fluid', 10000),
            energy: 200000
        }
    ]



    enchant_list.forEach((i) => {

        if (i.inputs.length == 4) {
            event.recipes.custommachinery.custom_machine("custommachinery:enchantedessence_foundry", 10)
                .requireFluid(i.fluid)
                .requireItem(i.inputs[0])
                .requireItem(i.inputs[1])
                .requireItem(i.inputs[2])
                .requireItem(i.inputs[3])
                .requireEnergy(i.energy)
                .produceItem(i.output)
        } else if (i.inputs.length == 3) {
            event.recipes.custommachinery.custom_machine("custommachinery:enchantedessence_foundry", 10)
                .requireFluid(i.fluid)
                .requireItem(i.inputs[0])
                .requireItem(i.inputs[1])
                .requireItem(i.inputs[2])
                .requireEnergy(i.energy)
                .produceItem(i.output)
        }


    })






});